﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace SocialLearning
{
    public partial class UserManagerForm : Form
    {
        #region Private Fields

        private UAC_GroupManagement gm = new UAC_GroupManagement();

        #endregion

        #region Private Methods

        /// <summary>
        /// Handles the Load event of the UserForm control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        private void UserForm_Load(object sender, EventArgs e)
        {
            LoadCbxData();
        }

        /// <summary>
        /// Loads the CBX data.
        /// </summary>
        private void LoadCbxData()
        {
            List<string> groupList = gm.SeeGroup().ToList();
            foreach (string groupname in groupList)
            {
                cbxGroup.Items.Add(groupname);
            }
        }

        #endregion

        #region Public Methods

        /// <summary>
        /// Initializes a new instance of the <see cref="UserManagerForm"/> class.
        /// </summary>
        public UserManagerForm()
        {
            InitializeComponent();
        }

        #endregion

        #region Private Controls

        private void btnCreate_Click(object sender, EventArgs e)
        {
            //gm.
        }

        #endregion
    }
}
